/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author tho.hoang
 */
public class Company extends AModel {

    private int regionId;
    private int isMonday;
    private int isTuesday;
    private int isWednesday;
    private int isThursday;
    private int isFriday;
    private int isSaturday;
    private int isSunday;

    public Company() {
    }

    public int getIsFriday() {
        return isFriday;
    }

    public void setIsFriday(int isFriday) {
        this.isFriday = isFriday;
    }

    public int getIsMonday() {
        return isMonday;
    }

    public void setIsMonday(int isMonday) {
        this.isMonday = isMonday;
    }

    public int getIsSaturday() {
        return isSaturday;
    }

    public void setIsSaturday(int isSaturday) {
        this.isSaturday = isSaturday;
    }

    public int getIsSunday() {
        return isSunday;
    }

    public void setIsSunday(int isSunday) {
        this.isSunday = isSunday;
    }

    public int getIsThursday() {
        return isThursday;
    }

    public void setIsThursday(int isThursday) {
        this.isThursday = isThursday;
    }

    public int getIsTuesday() {
        return isTuesday;
    }

    public void setIsTuesday(int isTuesday) {
        this.isTuesday = isTuesday;
    }

    public int getIsWednesday() {
        return isWednesday;
    }

    public void setIsWednesday(int isWednesday) {
        this.isWednesday = isWednesday;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public int getHasLottery(int dayOfWeek) {
        if (dayOfWeek == 1) {
            return isSunday;
        }
        if (dayOfWeek == 2) {
            return isMonday;
        }
        if (dayOfWeek == 3) {
            return isTuesday;
        }
        if (dayOfWeek == 4) {
            return isWednesday;
        }
        if (dayOfWeek == 5) {
            return isThursday;
        }
        if (dayOfWeek == 6) {
            return isFriday;
        }
        if (dayOfWeek == 7) {
            return isSaturday;
        }
        return 0;
    }
}
